<!-- START PAGE -->
        <div id="page">
        	
            	<!-- start stats -->
                <div id="stats">
                    <!-- use it up/down on <b> tag for different colors -->
                	<div class="column last" style="width:100%;text-aline:left;"><b>Doanh thu Khách Hàng tháng <?php echo $month;?>: <?php echo number_format($earn_this_month); ?> VND</b>	</div>
                </div>
                
                <!-- start page title -->
                <div class="page-title">
                	<div class="in">
                    		<div class="titlebar">	<h2>DASHBOARD</h2>	<p>Thống kê doanh số sms</p></div>
                            <div class="clear"></div>                            
                    </div>
                </div>
                <!-- end page title -->
                
                
                <!-- START CONTENT -->
                <div class="content">
                	<div class="simplebox grid740" style="z-index: 720;">
						<form action="" method="get" name="form2" id="form2">
						<div class="st-form-line" style="z-index: 520;">
							<input type="text" name="month" style="width:40px;" class="datepicker-input hasDatepicker" id="month">
                             <input type="text" name="year" style="width:100px;" class="datepicker-input hasDatepicker" id="year">								
							<a class="icon-button tips" href="javascript:;" onClick="document.form2.submit()" original-title="Search">
								<img width="18" height="18" alt="icon" src="<?php echo $static_url ?>/img/icons/button/search.png">
							</a>
							<div class="clear" style="z-index: 510;"></div> 
						</div>
						</form>
					</div>                       

						<table class="tablesorter" id="myTable"> 
							<thead> 
								<tr> 
									<th class="header">STT</th> 
									<th class="header">Tài khoản</th> 
									<th class="header">Tổng SMS(15)</th>
									<th class="header">Tổng Tiền(15)</th> 								
									<th class="header">Tổng SMS(30)</th>
									<th class="header">Tổng Tiền(30)</th>
									<th class="header">Tổng Doanh Thu</th>
								</tr> 
							</thead> 
							
							<tbody> 
								<?php
								if(!empty($items2)){
									foreach($items2 as $user2){
								?>
								<tr> 
									<td><?php echo $user2['STT'] ?></td> 
									<td><?php echo $user2['user_name'] ?></td> 
									<td><?php echo $user2['mid_SMS'] ?></td> 
									<td><?php echo $user2['mid_earm'] ?></td> 
									<td><?php echo $user2['bot_sms'] ?></td> 
									<td><?php echo $user2['bot_earm'] ?></td> 
									<td><?php echo $user2['Total'] ?></td> 
								</tr> 
								<?php
									}
								}
								?>
								
							</tbody> 
						</table>
                        <div class="clear"></div>
                    </div>
                    <!-- END CONTENT -->
        </div>
        <!-- END PAGE -->